home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / allqtips.zip / TECH3.MSG < prev    next >
Text File  |  1992-08-05  |  3KB  |  74 lines

  1.           A QEdit Tip from the SemWare Technical Support Staff
  2.  
  3.               .. QEdit in 43/50 Line Mode on Startup ..
  4.  
  5.        If you want to have QEdit start-up in 43/50 line mode, you can
  6.        call QEdit via a batch file, and have QEdit execute a macro on
  7.        start-up.
  8.  
  9.        EXAMPLE:
  10.  
  11.        1)  Using QEdit, create a macro file called file43.txt
  12.            containing the following macro:
  13.  
  14.                f10 MacroBegin SetEGA43
  15.  
  16.        2)  Using QEdit, create a macro file called nofile43.txt
  17.            containing the following macro:
  18.  
  19.                f10 MacroBegin SetEGA43 Quit DelLine
  20.  
  21.            The DelLine will delete the current filename from the
  22.            file to edit prompt box.
  23.  
  24.        3)  After you have created file43.txt and nofile43.txt, you
  25.            need to run Qmac.exe and create the binary macro file that
  26.            QEdit uses. If we call the binary macro file file43.mac,
  27.            then running Qmac at the Dos prompt using the following
  28.            format:
  29.  
  30.                Qmac file43.mac file43.txt
  31.  
  32.            It will create file43.mac from the file43.txt file.
  33.  
  34.            Repeat the process to create nofile43.mac using the following
  35.            format:
  36.  
  37.                Qmac nofile43.mac nofile43.txt
  38.  
  39.        4)  Create a batch file called Q43.bat with the following entries:
  40.  
  41.            @Echo off
  42.            if "%1" == "" goto NOFILE
  43.            C:\QEDIT\Q.exe -eC:\QEDIT\file43.mac %1 %2 %3 %4 %5 %6 %7 %8 %9
  44.            goto END
  45.            :NOFILE
  46.            C:\QEDIT\Q.exe nul -eC:\QEDIT\nofile43.mac
  47.            :END
  48.  
  49.        *NOTE* Use the path to your copy of Q.exe and file43.mac
  50.  
  51.            Now when your run Q43.bat.... If no parameters are passed to
  52.        Q43.bat, QEdit will load file "nul" and execute the first and
  53.        only macro contained in nofile43.mac, which will set the screen
  54.        into 43/50 line mode and then quit file "nul". You will now be in
  55.        a "file(s) to edit" prompt box.
  56.  
  57.            If parameters are passed to Q43.bat... QEdit will load the
  58.        first file specified on the command line and execute the first
  59.        and only macro in file43.mac, which will set the screen into
  60.        43/50 line mode.
  61.  
  62.        *PLEASE NOTE*
  63.  
  64.            If you don't supply filenames to the batch file, you will
  65.        need to make sure that you have the following option set to YES
  66.        (our default) within the General Options of the Qconfig.exe
  67.        program.
  68.  
  69.        Should PQuit, Exit and File return to the edit file prompt (Y/N)? Y
  70.  
  71.            If this is set to NO and you run Q43.bat with no filenames,
  72.        you will be back at a Dos prompt as soon as you run Q43.bat.
  73.  
  74.